{extend name="index_layout"/}
{block name="main"}
<div class="layui-card">
    <div class="layui-card-header">编辑其他工作岗位</div>
    <div class="layui-card-body">
        <form class="layui-form form-horizontal" action="{:url('admin/work/edit')}" method="post">
            <input type="hidden" name="workId" value="{$data.id}" />
            <div class="layui-form-item">
                <label class="layui-form-label">工作名称</label>
                <div class="layui-input-inline">
                    <input type="text" name="title" autocomplete="off" placeholder="工作名称" class="layui-input" value="{$data.title}">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">工作类别</label>
                <div class="layui-input-inline">
                    <select id="type" name="type">
                        <option value="0">请选择工作类别</option>
                        <option value="3" {if $data.type == 3}selected{/if}>其他岗位信息</option>
                    </select>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">工资</label>
                <div class="layui-input-inline">
                    <input type="text" name="wages" autocomplete="off" placeholder="工资" class="layui-input" value="{$data.wages}">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">公司名称</label>
                <div class="layui-input-inline">
                    <input type="text" name="company" autocomplete="off" placeholder="公司名称" class="layui-input" value="{$data.company}">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">排序</label>
                <div class="layui-input-inline">
                    <input type="number" name="sort" autocomplete="off" placeholder="排序" class="layui-input" value="{$data.sort}">
                </div>
            </div>
            <div class="layui-form-item layui-form-text">
                <label class="layui-form-labe">文章内容</label>
                <div class="layui-form-field-label">
                    <script type="text/javascript" src="__STATIC__/libs/ueditor/ueditor.config.js"></script>
                    <script type="text/javascript" src="__STATIC__/libs/ueditor/ueditor.all.js"></script>
                    <script type="text/javascript">
                        var info = UE.getEditor('info',{
                            initialFrameWidth: null,
                            initialFrameHeight: 250,
                            serverUrl: "{:url('attachment/Ueditor/run')}"
                        });

                    </script>
                    <script type="text/plain" id="info" name="info">{$data.info|raw}</script>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn ajax-post" lay-submit="" lay-filter="*" target-form="form-horizontal">立即提交</button>
                    <!--<button class="layui-btn layui-btn-normal" onClick="javascript :history.back(-1);">返回</button>-->
                </div>
            </div>
        </form>
        <div class="layui-form-item" style="margin-left: 100px;margin-top: -52px;">
            <div class="layui-input-block">
                <button class="layui-btn layui-btn-normal" onClick="javascript :history.back(-1);">返回</button>
            </div>
        </div>
    </div>
</div>
{/block}
{block name="script" }
<script type="text/javascript" src="__STATIC__/admin/js/common.js"></script>
{/block}